package com.sykj.utils;

import lombok.Getter;

@Getter
public enum ResultCode {

    SUCCESS(1000, "操作成功"),

    ALL_SVAE_SUCCESS(200,"添加成功"),

    ALL_GET_SUCCESS(201,"查询成功"),

    ALL_UPDATE_SUCCESS(203,"修改成功"),

    ALL_DELETE_SUCCESS(205,"删除成功"),

    ALL_SVAE_ERROR(5005,"添加失败"),

    ALL_GET_ERROR(5006,"查询失败"),

    ALL_UPDATE_ERROR(5007,"修改失败"),

    ALL_DELETE_ERROR(5008,"删除失败"),

    USER_QUERY_FAILED(5002, "用户查询的id不存在！"),

    FAILED(5004, "响应失败"),

    VALIDATE_FAILED(5003, "参数校验失败"),

    ERROR(5000, "未知错误");



    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
